package com.ruoyi.dept.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试验室仪器业务对象 dept_bs_instrument
 *
 * @author zyb
 * @date 2024-04-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BsInstrumentBo extends BaseEntity {

    /**
     * 仪器id
     */
    @NotNull(message = "仪器id不能为空", groups = { EditGroup.class })
    private Long instruId;

    /**
     * 所属试验室id
     */
    @NotBlank(message = "所属试验室id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptId;

    /**
     * 所属科室id
     */
    @NotBlank(message = "所属科室id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dpmId;

    /**
     * 仪器名称
     */
    @NotBlank(message = "仪器名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instruName;

    /**
     * 仪器编号
     */
    @NotBlank(message = "仪器编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instruCode;

    /**
     * 生产厂家名称
     */
    //@NotBlank(message = "生产厂家名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manufacturer;

    /**
     * 型号规格
     */
    //@NotBlank(message = "型号规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * 测量范围
     */
    //@NotBlank(message = "测量范围不能为空", groups = { AddGroup.class, EditGroup.class })
    private String measuringRange;

    /**
     * 出厂编号
     */
    //@NotBlank(message = "出厂编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manufacturerCode;

    /**
     * 出厂日期
     */
    //@NotNull(message = "出厂日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date manufacturerDate;

    /**
     * 购置日期
     */
    //@NotNull(message = "购置日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date purchaseDate;

    /**
     * 保管者
     */
    //@NotBlank(message = "保管者不能为空", groups = { AddGroup.class, EditGroup.class })
    private String custodian;

    /**
     * 检定校准单位
     */
    //@NotBlank(message = "检定校准单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String calibrationUnit;

    /**
     * 检定校准时间
     */
    //@NotNull(message = "检定校准时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date calibrationDate;

    /**
     * 有效截至日期
     */
    //@NotNull(message = "有效截至日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date effectiveDate;

    /**
     * 自动生成记录0否1是
     */
    //@NotBlank(message = "自动生成记录0否1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recordFlag;


}
